package com.feng;

import com.feng.config.ConditionConfig;
import com.feng.service.ListService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @description:
 * @author: lrf
 * @create: 2019-09-07
 **/
public class Main {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext context
                = new AnnotationConfigApplicationContext(ConditionConfig.class);


        ListService listService = context.getBean(ListService.class);

        String showListCmd = listService.showListCmd();
        System.out.println(context.getEnvironment().getProperty("os.name") + " 系统下的命令列表命令为：" + showListCmd);

        context.close();
    }
}
